import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    redirect:"/crypt"
  },
  {
      path:"/crypt",
      component: () => import("../views/crypt-page")
  },
  {
    path: "/tools",
    redirect: "/tools/manual"
  },
  {
    path:"/tools/groovy-maker",
    component: () => import("../views/tools/groovy-maker/groovy-maker")
  },
  {
    path:"/tools/qrcode-maker",
    component: () => import("../views/tools/qrcode-maker/qrcode-maker")
  },
  {
    path: "/tools/report-maker",
    component: () => import("../views/tools/report-maker/report-maker")
  },
  {
    path:"/tools/manual",
    component: () => import("../views/tools/manual")
  },
  {
    path: "/performance/index",
    component: () => import("../views/performance/performance-inde")
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
